﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication5.Models
{
    public class Course
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [MinLength(5), MaxLength(50), Required]
        [Description("编号")]
        public string CourseId { get; set; }
        [MinLength(5), MaxLength(50), Required]
        [Description("课程名")]
        public string CourseName { get; set; }
        public int Credit { get; set; }
        public int Period { get; set; }
        public string CourseNature { get; set; }
        public string CourseProperties { get; set; }
        public string Inspect { get; set; }
        public int TestWeight { get; set; }
        public int UsualWeight { get; set; }
    }
}

